<!doctype html>
<html lang="zh">

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
  <link rel="icon" href="dist/img/favicon-32x32.png" sizes="32x32" type="image/png">
  <link rel="icon" href="dist/img/favicon-16x16.png" sizes="16x16" type="image/png">
  <script src="./js/lib/jquery-3.6.2.min.js" type="text/javascript"></script>
  <script src="./js/shared/enumeration.js" type="text/javascript"></script>
  <link rel="stylesheet" href="lib/bootstrap-icons/font/bootstrap-icons.min.css">
  <link rel="stylesheet" href="lib/bootstrap/dist/css/bootstrap.min.css">
  <link rel="stylesheet" href="lib/overlayscrollbars/styles/overlayscrollbars.min.css">
  <link rel="stylesheet" href="dist/css/bootstrap-admin.min.css">
  <title>后台管理系统</title>
</head>

<body data-theme="light">

  <!--头部导航-->
  <ul class="bsa-header">
    <!-- 侧边栏触发按钮(移动端时显示) -->
    <li class="bsa-sidebar-toggler" data-bsa-toggle="pushmenu">
      <div class="bsa-header-item">
        <i class="bi bi-list"></i>
      </div>
    </li>
    <!--  搜索组件(不需要可删除)  -->
    <li>
      <div class="bsa-header-item bsa-cursor-default">
        <!--    搜索表单包裹区域        -->
        <div class="bsa-search-form-wrapper">
          <div class="bsa-search-form">
            <!-- <input type="text" class="form-control bsa-input-search" aria-label="搜索关键词" placeholder="搜索关键词"> -->
            <!-- <button class="bsa-search-submit-btn" type="submit"><i class="bi bi-search"></i></button>
            <button class="bsa-search-close-btn" type="button"><i class="bi bi-x-lg"></i></button> -->
          </div>
        </div>
        <!--    移动端搜索表单触发器(移动端会显示)        -->
      </div>
    </li>
    <!--  占位(可以让后面的li居右)  -->
    <li class="flex-grow-1"></li>
    <!--  通知(如果有新消息则添加类名.bsa-has-msg)  -->
    <!-- <li>
      <div class="bsa-header-item" data-qt-tab='{"title":"消息中心","url":"pages/message.html"}' data-qt-target=".qtab">
        <i class="bi bi-bell bsa-has-msg"></i>
      </div>
    </li> -->
    <!--  全屏  -->
    <!-- <li class="bsa-fullscreen-toggler">
      <div class="bsa-header-item">
        <i class="bi bi-arrows-fullscreen"></i>
      </div>
    </li> -->
    <!--  主题配色  -->
    <li class="dropdown">
      <div class="bsa-header-item" data-bs-toggle="dropdown" data-bs-auto-close="outside">
        <i class="bi bi-palette"></i>
      </div>
      <div class="dropdown-menu dropdown-menu-end p-0">
        <div class="card shadow-sm">
          <div class="card-header d-flex justify-content-between bg-body">
            <span class="bsa-fs-15">主题配色</span>
          </div>
          <div class="card-body">
            <!--    配色包裹      -->
            <div class="bsa-theme-switcher-wrapper">
              <input class="form-check-input" type="checkbox" value="light">
              <input class="form-check-input" type="checkbox" value="dark">
              <input class="form-check-input" type="checkbox" value="indigo">
              <input class="form-check-input" type="checkbox" value="green">
              <input class="form-check-input" type="checkbox" value="blue">
              <input class="form-check-input" type="checkbox" value="yellow">
              <input class="form-check-input" type="checkbox" value="pink">
              <input class="form-check-input" type="checkbox" value="red">
              <input class="form-check-input" type="checkbox" value="orange">
              <input class="form-check-input" type="checkbox" value="cyan">
              <input class="form-check-input" type="checkbox" value="teal">
            </div>
          </div>
        </div>
      </div>
    </li>
    <!--    管理员信息    -->
    <li class="dropdown">
      <div class="bsa-header-item" data-bs-toggle="dropdown">
        <div class="bsa-user-area">
          <img src="dist/img/avatar.jpg" class="bsa-user-avatar" alt="用户头像">
          <div class="bsa-user-details">
            <div class="bsa-ellipsis-1 bsa-fs-15">
              <span id="nicknameid" name="nicknameid"></span>
            </div>
            <!-- 管理员角色RBAC权限设计时可用(不需要可删除,上面的用户名可自动垂直居中)  -->
            <!-- <div class="bsa-ellipsis-1 bsa-fs-13 text-muted">超级管理员</div> -->
          </div>
        </div>
      </div>
      <ul class="dropdown-menu dropdown-menu-end">
        <!-- <li>
          <a class="dropdown-item" href="javascript:" data-qt-tab='{"title":"个人资料","url":"pages/profile.html"}'
            data-qt-target=".qtab">
            <i class="bi bi-person me-2"></i>个人资料
          </a>
        </li>
        <li> -->
        <a class="dropdown-item bsa-clear-cache" href="javascript:"
          data-qt-tab='{"title":"修改密码","url":"pages/password.html"}' data-qt-target=".qtab">
          <i class="bi bi-key me-2"></i>修改密码
        </a>
    </li>
    <li>
      <div class="dropdown-divider"></div>
    </li>
    <li class="bsa-logout"><a class="dropdown-item" href="javascript:"><i
          class="bi bi-box-arrow-right me-2"></i>退出登录</a>
    </li>
  </ul>
  </li>
  </ul>

  <!--侧边栏-->
  <div class="bsa-sidebar">
    <div class="card border-0 h-100">
      <!--  侧边栏头部(用于展示品牌logo)  -->
      <div class="card-header bg-body d-flex align-items-center flex-shrink-0">
        <img src="dist/img/favicon-32x32.png" class="bsa-logo-icon" alt="logo-icon">
        <div class="bsa-logo-text ms-2 bsa-ellipsis-2"><span id="appName" name="appName"></span></div>
      </div>
      <!--  侧边栏身体部分(用于主要的侧边栏菜单)  -->
      <div class="card-body p-0" data-overlayscrollbars-initialize>
        <!--   侧边栏的菜单     -->
        <ul class="bsa-menu" data-bsa-toggle="sidebar" data-accordion="true" data-click-close="true">
          <li>
            <a href="pages/welcome.html">

              <i class="bi bi-house"></i>首页
            </a>
          </li>
          <li id="userNode">
            <a href="html/user/userManager.html">
              <i class="bi bi-person-gear"></i>用户管理
            </a>
          </li>
          <li id="userHeiNode">
            <a href="html/union/unionHeiBaiUser.html">
              <i class="bi bi-file-ruled"></i>黑白名单
            </a>
          </li>
          <li id="userWinNode">
            <a href="html/user/userTarget.html">
              <i class="bi bi-trophy"></i>胜率管理
            </a>
          </li>
          <li>
            <a href="html/union/unionInfo.html">
              <i class="bi bi-people"></i>联盟管理
            </a>
          </li> 
           <li id="RobotNode">
            <a href="html/gameControl/gameController.html">
              <!-- //bi bi-graph-up-arrow -->
              <i class="bi bi-robot"></i>陪玩管理
            </a>
          </li>
          <li id="roomNode">
            <a href="html/systemSet/roomSet.html">
              <i class="bi bi-houses"></i>房间管理
            </a>
          </li>
          <li id="signNode">
            <a href="html/systemSet/signSet.html">
              <i class="bi bi-x-diamond"></i>签到管理
            </a>
          </li>
          <li id="orderNode">
            <a href="javascript:" class="has-children">
              <i class="bi bi-building-lock"></i>充值管理
            </a>
            <ul>
              <li>
                <a href="html/recharge/rechargeSet.html">充值设置
                </a>
              </li>
              <li>
                <a href="html/recharge/order.html">订单管理
                </a>
              </li>
            </ul>

          </li>
          <li id="dataNode">
            <a href="html/dataStatistics/adminGrantRecord.html">
              <!-- //bi bi-graph-up-arrow -->
              <i class="bi bi-bar-chart"></i>数据统计
            </a>
          </li>

          <li id='sysNode'>
            <a href="javascript:" class="has-children">
              <i class="bi bi-gear"></i>系统维护
            </a>
            <ul>
              <li>
                <a href="html/systemSet/systemSettings.html">系统设置</a>
              </li>
              <li>
                <a href="html/account/administratorsAccount.html">账号管理</a>
              </li>
              <li>
                <a href="html/systemSet/broadcastSettings.html">广播管理</a>
              </li>
              <li>
                <a href="html/systemSet/emailSettings.html">系统邮件</a>
              </li>
              <li>
                <a href="html/systemSet/emailSettingsSingle.html">个人邮件</a>
              </li>

            </ul>
          </li>
        </ul>
      </div>
    </div>
  </div>

  <!--内容区域(.bsa-content-fixed类删除后即可变成单页版本)-->
  <div class="bsa-content bsa-content-fixed">
    <div class="qtab" data-qt-tabs='[{"title":"首页","url":"pages/welcome.html","close":false}]'></div>
  </div>

  <!--版权信息-->
  <div class="bsa-footer navbar-fixed-bottom">
    <p class="mb-0">Copyright © 2023. All right reserved.</p>
  </div>

  <!--加载层-->
  <div class="bsa-preloader">
    <div class="spinner-border text-secondary" role="status">
      <span class="visually-hidden">Loading...</span>
    </div>
  </div>


  <script src="lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
  <script src="lib/jquery/dist/jquery.min.js"></script>
  <script src="lib/overlayscrollbars/browser/overlayscrollbars.browser.es6.min.js"></script>
  <script src="lib/bootstrap-quicktab/dist/js/bootstrap-quicktab.min.js"></script>
  <script src="dist/js/bootstrap-admin.min.js"></script>
  <script src="dist/js/app.js"></script>


  <script>
    $(document).ready(function () {

      document.title = enumeration.appName;
      $("#appName").text(enumeration.appName);
      let nickname = localStorage.getItem('nickname');
      let permission = localStorage.getItem('permission');
      if (nickname) {
        $("#nicknameid").text(nickname);
      } else {
        $(location).attr('href', '/webs');
        return;
      }

      // if (permission == 428) {
      //   $("#sysNode").remove();
      //   $("#dataNode").remove();
      //   $("#orderNode").remove();
      //   $("#roomNode").remove();
      //   $("#hallNode").remove();
      //   $("#noteNode").remove();
      //   $("#userNode").remove();
      // }

      //头部搜索框处理(不需要可以删除,不明白的可以看bootstrap-admin官方文档)
      $(document).on('search.bsa.navbar-search', function (e, inputValue, data) {
        //先得到请求地址,组合后大概是这样pages/search.html?keyword=dsadsa&type=article&user=admin2
        let url = data.action + '?keyword=' + inputValue + '&' + $.param(data.params);

        //然后通过tab打开一个搜索结果的窗口
        Quicktab.get('.qtab').addTab({
          title: '<i class="bi bi-search"></i><span class="text-danger ms-2">' + inputValue + '</span>',
          url: url,
          close: true,
        })
      })

      //退出登录
      $(document).on('click', '.bsa-logout', function (e) {
        e.preventDefault();
        $.modal({
          body: '确定要退出吗？',
          cancelBtn: true,
          ok: function () {
            localStorage.setItem('nickname', '');
            top.location.replace('/webs');
          }
        })


      });
    });
  </script>
</body>

</html>